using System.Collections.Generic;
using System.Linq;
using JmShared;
using NetworkCommsDotNet;
using DPSBase;

namespace jivemessenger
{
    public static class Client
    {
        public static Dictionary<string, UserInfo> ConnectedClients { get; set; }
        public static UserInfo CurrentUserInfo { get; set; }
        public static Dictionary<string, ActivityPrivateMessage> PrivateMessages { get; set; }//key:UserInfo.UserID
        public static readonly UserInfo GreenText = new UserInfo { Color = "FF0800", UserName = "GreenText", FontName = "Segoe UI" };
        public static readonly UserInfo RedText = new UserInfo { Color = "800000", UserName = "Error", FontName = "Segoe UI" };
        public static readonly UserInfo GrayText = new UserInfo { Color = "FF696969", UserName = "GrayText", FontName = "Segoe UI" };
        //public static Queue<ChatBubble> StoredReveicedChatMessages
        //{
        //    get
        //    {
        //        return (App.Current as App).AppSettings.ChatMessageQueue;
        //    }
        //    set
        //    {
        //        (App.Current as App).AppSettings.ChatMessageQueue = value;
        //    }
        //}


        public static bool IsLoggedIn { get; set; }
        public static bool IsAfk { get; set; }
        public static bool IsBusy { get; set; }
        public static string LastConnectedUserName { get; set; }

        static Client()
        {
            ConnectedClients = new Dictionary<string, UserInfo>();
            PrivateMessages = new Dictionary<string, ActivityPrivateMessage>();
            //StoredReveicedChatMessages = new Queue<ChatBubble>();
            CurrentUserInfo = null;
        }
    }
}
